﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DataModel.Demo;
using DataModel.KaoShi;
using InterfaceServer;

namespace DLL
{
    public class Class1: IDemo
    {
        public void Create()
        {
            using (var data = new EFKaoShiContext())
            {
                data.Database.CreateIfNotExists();
                var model=new DataModel.Questions();
                model.Answer = "1";
                model.id = 1;
                model.qtype = 1;
                model.textContent = "1";
                data.Questions.Add(model);
                data.SaveChanges();
            }
            
        }

        public string Getinfo()
        {
            throw new NotImplementedException();
        }

        public string GetList()
        {
            throw new NotImplementedException();
        }

    }
}
